package jay.home.bet.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import jay.home.bet.domain.Order;

public interface OrderDao {

	Order getOrder(String id) throws DataAccessException;

	List<Order> getOrders(int page, int range) throws DataAccessException;
	
	List<Order> getOrders(Map map, int page, int range) throws DataAccessException;

	List<Order> getOrdersByUser(String username, int page, int range) throws DataAccessException;

	List<Order> getOrdersByComp(String compid, int page, int range) throws DataAccessException;

	void updateOrder(Order order) throws DataAccessException;

	void insertOrder(Order order) throws DataAccessException;

	List<Order> getOrdersByEventAndOdd(String eventid, String oddtype, int page, int range);

	List<Order> getTodayOrders(String yesterday, int page, int range);

	List<Order> getTodayOrdersByUser(String username, String yesterday, int page, int range);

	void deleteOrder(Order order);

}